package com.yjxz.shop.common;

import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CommonService<T> {
    int add(T t);

    int delete(T t);

    int deleteById(Object id);

    int update(T t);

    List<T> list(T t);

    List<T> listAll();

    PageInfo<T> listByPage(T t, int pageNo, int pageSize);

    PageInfo<T> listAllByPage(int pageNo, int pageSize);

    T getById(Object id);

    T get(T t);

    int getCount(T t);

    int getCount();
}
